package com.whub507.msgmanager.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.whub507.msgmanager.domain.Project;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProjectMapper extends BaseMapper<Project> {
    List<Project> selectAllByKeyWord(String keyWord);
    Project selectByName(String name);

    Project selectByNameAndSenderId(String name, Integer senderId);

    Project selectById(Integer projectId);

    List<Project> selectAllProject(Integer senderId);

    Integer insertProject(Project project);

    Integer deleteProjectById(Integer id);

    Integer updateProjectById(Project project);

    List<Project> selectApproveProjects(Integer approverId);
}
